import {
	ApiUtils,
	_axios
} from 'api/apiUtil.js';
import constant from 'util/constant.js';

const api = {
	login: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/login", request, successCallback, failCallback, exceptionCallback);
	},
	logout: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/logout", request, successCallback, failCallback, exceptionCallback);
	},
	sendEmail: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/sendEmail", request, successCallback, failCallback, exceptionCallback);
	},
	findPwd: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/findPwd", request, successCallback, failCallback, exceptionCallback);
	},
	getInfo: (request, successCallback, failCallback, exceptionCallback) => {
	 	ApiUtils.sendAjax(constant.serverUrl+"/getInfo", null, successCallback, failCallback, exceptionCallback);
	},
	getSystemsetting: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendAjax(constant.serverUrl+"/getSystemsetting", null, successCallback, failCallback, exceptionCallback);
	},
}
export default api;
